<template>
    <div class="subpage">
       <My-head title="我的地址" :carthave="true" tclass='thead'>
       </My-head>
       
        <van-address-edit
        :area-list="areaList"
        show-postal
        show-set-default
        show-search-result
        :area-columns-placeholder="['请选择', '请选择', '请选择']"
        @save="onSave"
        @ti="getTi(id)"
        />
    </div>
</template>

// <script>
import { areaList } from '@vant/area-data'
export default {
    data() {
        return {
            areaList,
            searchResult: [],
        }
    },
    methods: {
    onSave(value) {
      this.$dialog.confirm({
          title: '温馨提示',
          message: '亲,您确定添加该地址吗?',
      })
      .then(() => {
        this.$ajax.addAddress(value)
      })
      
    },
  },
}
// </script>